file(GLOB_RECURSE SRCS *.h *.cpp *.hpp)
# foreach(VAR ${SRCS})
#     message(STATUS ${VAR})
# endforeach()

set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
add_library(SEngine SHARED ${SRCS})
# add_library(SEngine STATIC ${SRCS})

target_link_libraries(SEngine PUBLIC 
    SEMath
    SERender
    SECore
    SEDebug
    SEWindow
    SEUi
    sol2
    lua535
    SEPhysics
    SEAnimation
)

target_link_libraries(SEngine PRIVATE
    assimp
    freetype
)

target_include_directories(SEngine 
    PUBLIC 
        ../
    PRIVATE
        ${LIBIGL_INCLUDE_DIR}
        ${EIGEN_INCLUDE_DIR}
)

target_compile_options(SEngine PRIVATE /bigobj)

